{dede:config.pagesize value='30'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>广告管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
	</head>
	<body>
		<div class="container-fluid">
			<ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
				<li class="breadcrumb-item active">广告管理</li>
			</ol>
			<div class="card shadow-sm mb-3">
				<div class="card-body">
					<form name="form3" action="ad_main.php" method="get">
						<input type="hidden" name="dopost" value="listArchives">
						<input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-2">
						<select name="clsid" id="clsid" class="admin-input-sm">
							<option value="0">默认分类</option>
							<?php echo $option;?>
						</select>
						<button type="submit"class="btn btn-success btn-sm">搜索</button>
						<a href="ad_add.php" class="btn btn-success btn-sm">添加广告</a>
						<a href="adtype_main.php" class="btn btn-success btn-sm">广告分类管理</a>
					</form>
				</div>
			</div>
			<div class="card shadow-sm">
				<div class="card-header">广告管理</div>
				<div class="card-body">
					<div class="table-responsive">
						<table class="table table-borderless table-hover">
							<thead>
								<tr>
									<td scope="col">id</td>
									<td scope="col">分类</td>
									<td scope="col">广告名称</td>
									<td scope="col">投放范围</td>
									<td scope="col">是否限时</td>
									<td scope="col">结束时间</td>
									<td scope="col">操作</td>
								</tr>
							<thead>
							<tbody>
								{dede:datalist}
								<tr>
									<td>{dede:field.aid/}</td>
									<td>{dede:field.clsname function='TestType(@me,1)'/}</td>
									<td>{dede:field.adname/}</td>
									<td>{dede:field.typename function='TestType(@me)'/}</td>
									<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td>
									<td>{dede:field.endtime function='GetDateMk(@me)'/}</td>
									<td>
										<a href="ad_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
										<a href="ad_edit.php?aid={dede:field.aid/}&dopost=gettag" class="btn btn-light btn-sm"><i class="fa fa-code" title="代码"></i></a>
										<a href="ad_edit.php?aid={dede:field.aid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
									</td>
								</tr>
								{/dede:datalist}
							</tbody>
						</table>
					</div>
					{dede:pagelist listsize='6'/}
				</div>
			</div>
		</div>
	</body>
</html>